package com.example.demo.security.service;

import org.springframework.security.core.GrantedAuthority;

public class MyGrantedAuthority  implements GrantedAuthority {
    private String ROLE_NAME;
    public MyGrantedAuthority(String ROLE_NAME) {
        this.ROLE_NAME = ROLE_NAME;
    }

    @Override
    public String getAuthority() {
        return ROLE_NAME;
    }

}
